package com.thon.service.user;

import java.util.List;

import com.thon.dao.util.Page;
import com.thon.entity.project.ProjectSupport;
import com.thon.entity.user.Present;
import com.thon.entity.user.User;

/**
 * @author wang
 * @date 2014-6-24
 * @description:礼品
 */
public interface PresentService {
	
	public void save(Present present);
	
	public void update(Present present);
	
	public Present getPresent(int id);
	
	public Page<Present> findAllByPhone(String string, int pageNo,int pageSize);
	
	public List<Present> listPresentByPhone(String loginName);
	
	public Long countPresent(String loginName);
	
	public Present findOne(Integer presentId);
	
	public Page<Present> findPrsentByStatus(String loginName, int status, int p, int s);
	
	//用于触发短信和信息发送
	public void sendMail(ProjectSupport newProjectSupport, User oldUser,User newUser);
	
	//用于触发短信发送
	public void addUser(User oldUser, ProjectSupport projectSupport);

	public void del(int pid);
}
